package com.xt.favorites.admin.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xt.common.utils.PageUtils;
import com.xt.common.utils.Query;

import com.xt.favorites.admin.dao.LetterDao;
import com.xt.favorites.admin.entity.LetterEntity;
import com.xt.favorites.admin.service.LetterService;


@Service("letterService")
public class LetterServiceImpl extends ServiceImpl<LetterDao, LetterEntity> implements LetterService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<LetterEntity> page = this.page(
                new Query<LetterEntity>().getPage(params),
                new QueryWrapper<LetterEntity>()
        );

        return new PageUtils(page);
    }

}